package com.gome.comp;

import com.gome.vue4j.core.AbstractVue4jComponent;
import com.gome.vue4j.core.FXMLPath;
import javafx.beans.property.StringProperty;
import javafx.fxml.FXML;

import java.util.Map;

/**
 * 一个带标签的输入框
 */
@FXMLPath("/comp/label-text-field-view.fxml")
public class L11Z1LabelTextField extends AbstractVue4jComponent {
    @FXML
    StringProperty labelText;
    @FXML
    StringProperty fieldText;

    //重新setProps方法接收参数
    @Override
    public void setProps(Map<String, Object> props) {
        super.setProps(props);

        this.labelText = (StringProperty) props.get("labelText");
        this.fieldText = (StringProperty) props.get("fieldText");
    }
}
